﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DCT.CodeBox.BMS.Code.DataModels
{
    /// <summary>
    /// 用户详细数据
    /// </summary>
    public class UserInfoDataModel : BaseDataModel
    {
        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 显示名
        /// </summary>
        public string ShowName { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 角色信息
        /// </summary>
        /// <remarks>一个用户可以有多个角色</remarks>
        public List<RoleDataModel> RoleData { get; set; }

        public override string GetIdentifier()
        {
            return this.UserName;
        }
    }
}
